
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class PlanePlaneCfg : public ManualSingleton <PlanePlaneCfg>
{
	friend ManualSingleton <PlanePlaneCfg>;
public:
	PlanePlaneCfg();
	~PlanePlaneCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const PlanePlaneCfgInfo *GetPlanePlaneCfgInfo(int32_t id);
	const PlanePlaneCfgMap *GetPlanePlaneCfgMap() { return &m_PlanePlaneCfgMap; }
private:
	PlanePlaneCfgMap m_PlanePlaneCfgMap;
};

#define  g_MakePlanePlaneCfgTable() (PlanePlaneCfg::Instance())
#define  g_GetPlanePlaneCfgTable() (PlanePlaneCfg::GetInstance())
#define  g_DelPlanePlaneCfgTable() (PlanePlaneCfg::Destroy())